package com.dkm.biz.gl.repository.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.gl.domain.GlFile;
import com.dkm.biz.gl.persistence.dao.GlFileQueryDao;
import com.dkm.biz.gl.persistence.entity.GlFilePo;
import com.dkm.biz.gl.repository.GlFileRepository;
import com.dkm.biz.repository.AbstractRepository;

/**
 * 对象功能:通用附件 Repository接口的实现类
 * 开发公司:SKG.COM
 * 开发人员:zhz
 * 创建时间:2015-07-14 15:48:04
 */
@Repository
public class GlFileRepositoryImpl extends AbstractRepository<String, GlFilePo,GlFile> implements GlFileRepository{
	  
	@Resource
	private  GlFileQueryDao glFileQueryDao;

	public GlFile newInstance() {
		GlFilePo po = new GlFilePo();
		GlFile glFile = SpringHelper.getBean(GlFile.class);
		glFile.setData(po);
		return glFile;
	}

	public GlFile newInstance(GlFilePo po) {
		GlFile glFile = SpringHelper.getBean(GlFile.class);
		glFile.setData(po);
		return glFile;
	} 
	
	@Override
	protected IQueryDao<String, GlFilePo> getQueryDao() {
		return glFileQueryDao;
	}
	
}
